package com.dhwl.hsh.merchant.model;

import com.dhwl.hsh.lib.bean.HttpResponse;
import com.dhwl.hsh.lib.bean.resp.MerchantResp;
import com.dhwl.hsh.lib.bean.resp.UserAuthResp;
import com.dhwl.hsh.lib.bean.resp.UserResponse;

import rx.Observable;

/**
 * 用户相关数据处理
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2016-04-13 15:34
 */
public interface IUserModel {
    /**
     * 用户登录
     *
     * @param account
     * @param pwd
     * @return
     */
    Observable<HttpResponse<UserResponse>> login(String account, String pwd);

    /**
     * 获取商户信息
     *
     * @return
     */
    Observable<HttpResponse<MerchantResp>> getMerchant();

    /**
     * 获取商户或司机的认证信息
     *
     * @return
     */
    Observable<HttpResponse<UserAuthResp>> getUserAuth();

    /**
     * 修改密码
     *
     * @param oldPwd
     * @param newPwd
     * @return
     */
    Observable<HttpResponse<String>> fixPwd(String oldPwd, String newPwd);

    /**
     * 重置密码
     *
     * @param phone
     * @param newPwd
     * @param checkNum
     * @return
     */
    Observable<HttpResponse<String>> resetPwd(String phone, String newPwd, String checkNum);

}
